package cn.swust.designpatternlearningplatform.dao;

import cn.swust.designpatternlearningplatform.dao.sql.TestPaperContentDaoSql;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
/**

 * @author wang
 * description 试卷关联题目，一套试卷里面对应了几个题目以及题目的id
 * date 2023/5/25 0:33
 */
public interface TestPaperContentDao {
    @DeleteProvider(type = TestPaperContentDaoSql.class,method = "deleteTestPaperContent")
    void deleteTestPaperContent(String testId);
    @InsertProvider(type = TestPaperContentDaoSql.class,method = "addTestPaper")
    void addTestPaper(Integer topicId, String paperNumber, String score);
    @SelectProvider(type = TestPaperContentDaoSql.class,method = "selecteTestPaper")
    List<Integer> selecteTestPaper(String testId);
    @UpdateProvider(type = TestPaperContentDaoSql.class,method = "updateTestPaperTopic")
    void updateTestPaperTopic(String paperNumber, Integer topicId,Integer newTopicId);
}
